package network.course3.fixedthreadpool;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class Bank {
    private  static final ExecutorService threadPool= Executors.newFixedThreadPool(2);
    public static void main(String[] args) {
        Account account=new Account(1000);
        threadPool.execute(new Person("姚远",100,"window",account));
        threadPool.execute(new Person("陆晓鸥",50,"Atm",account));
    }
}
